/**
 * 2018年12月9日下午2:58:04
 * @author 谢进财
 */
package com.baihang.project.ds.common;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.baihang.framework.dao.BaseDao;
import com.baihang.project.ds.model.FangYuanModel;
import com.baihang.project.ds.model.dbMap.FangYuanRowMapper;

/**
 * 通用dao层
 *
 */
@Repository
public class CommonDao extends BaseDao {
	private static Logger logger = LoggerFactory.getLogger(CommonDao.class);
	@Autowired
	private FangYuanRowMapper rowMapper;
	
	public List<FangYuanModel> queryForFangYuanList(String sql){
		List<FangYuanModel>  modelList = null;
		try {
			modelList = super.getJdbcTemplate().query(sql, rowMapper);
		}catch (Exception e) {
			// TODO: handle exception
			logger.info(e.getMessage());
		}
		return modelList;
	}
}
